<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: H:/project/LibTools/src/log/LogFactory.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_2241064965c8d9ca993f08b926076f7d.html">log</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">LogFactory.h 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="log_8h_source.html">log.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_safe_log_8h_source.html">SafeLog.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="logdef_8h_source.html">logdef.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_log_stream_8h_source.html">LogStream.h</a>&quot;</code><br />
</div>
<p><a href="_log_factory_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_log_factory.html">LogFactory</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">日志工具类  <a href="class_log_factory.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:a3bcb3081cc092adc9e13acb28e70d9e0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_log_factory_8h.html#a3bcb3081cc092adc9e13acb28e70d9e0">LOG_TOOLS</a>(LEVEL)&#160;&#160;&#160;LibTools::CLogStream(LibTools::LogFactory::GetInstancePtr(), LEVEL)&lt;&lt;&quot;[&quot;&lt;&lt;__FILE__&lt;&lt;&quot;,&quot;&lt;&lt;__LINE__&lt;&lt;&quot;]&quot;</td></tr>
<tr class="memdesc:a3bcb3081cc092adc9e13acb28e70d9e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">日志流操作宏工具  <a href="_log_factory_8h.html#a3bcb3081cc092adc9e13acb28e70d9e0">更多...</a><br /></td></tr>
<tr class="separator:a3bcb3081cc092adc9e13acb28e70d9e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3df9ded611daa86e2ddaa45c2bda32d7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_log_factory_8h.html#a3df9ded611daa86e2ddaa45c2bda32d7">LOG_SET_DIR</a>(dir)&#160;&#160;&#160;LibTools::LogFactory::GetInstancePtr()-&gt;SetLogPath(dir)</td></tr>
<tr class="memdesc:a3df9ded611daa86e2ddaa45c2bda32d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置目录  <a href="_log_factory_8h.html#a3df9ded611daa86e2ddaa45c2bda32d7">更多...</a><br /></td></tr>
<tr class="separator:a3df9ded611daa86e2ddaa45c2bda32d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67aae99c7746aabb0b23348e0ee6c929"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_log_factory_8h.html#a67aae99c7746aabb0b23348e0ee6c929">LOG_SET_FILE_SIZE</a>(fileSize)&#160;&#160;&#160;LibTools::LogFactory::GetInstancePtr()-&gt;SetLogFileSize(fileSize)</td></tr>
<tr class="memdesc:a67aae99c7746aabb0b23348e0ee6c929"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置文件大小  <a href="_log_factory_8h.html#a67aae99c7746aabb0b23348e0ee6c929">更多...</a><br /></td></tr>
<tr class="separator:a67aae99c7746aabb0b23348e0ee6c929"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6e60c0db40fcf44166ed93a1fb15308"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_log_factory_8h.html#aa6e60c0db40fcf44166ed93a1fb15308">LOG_SET_SWITCH_FILE_TIME</a>(switchFileTime)&#160;&#160;&#160;LibTools::LogFactory::GetInstancePtr()-&gt;SetSwitchFile(switchFileTime)</td></tr>
<tr class="memdesc:aa6e60c0db40fcf44166ed93a1fb15308"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置切换文件的时间(单位秒)  <a href="_log_factory_8h.html#aa6e60c0db40fcf44166ed93a1fb15308">更多...</a><br /></td></tr>
<tr class="separator:aa6e60c0db40fcf44166ed93a1fb15308"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae65650d5cd8ed6e59570a4ef2445ada1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_log_factory_8h.html#ae65650d5cd8ed6e59570a4ef2445ada1">LOG_SET_LEVEL</a>(level)&#160;&#160;&#160;LibTools::LogFactory::GetInstancePtr()-&gt;SetLogLevel(level)</td></tr>
<tr class="memdesc:ae65650d5cd8ed6e59570a4ef2445ada1"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置日志级别  <a href="_log_factory_8h.html#ae65650d5cd8ed6e59570a4ef2445ada1">更多...</a><br /></td></tr>
<tr class="separator:ae65650d5cd8ed6e59570a4ef2445ada1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48f58b6175e9d5e2c645150387385b91"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_log_factory_8h.html#a48f58b6175e9d5e2c645150387385b91">LOG_SET_WRITE_CONSOLE</a>(isWriteConsole)&#160;&#160;&#160;LibTools::LogFactory::GetInstancePtr()-&gt;SetWriteConsole(isWriteConsole)</td></tr>
<tr class="memdesc:a48f58b6175e9d5e2c645150387385b91"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置输出到控制台  <a href="_log_factory_8h.html#a48f58b6175e9d5e2c645150387385b91">更多...</a><br /></td></tr>
<tr class="separator:a48f58b6175e9d5e2c645150387385b91"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:af8a544c409a7f10d43a1bb45c8b9ad0b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_log_factory_8h.html#af8a544c409a7f10d43a1bb45c8b9ad0b">EXPORT_SHARED_PTR</a> (<a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>, <a class="el" href="class_c_safe_logs.html">CSafeLogs</a>)</td></tr>
<tr class="memdesc:af8a544c409a7f10d43a1bb45c8b9ad0b"><td class="mdescLeft">&#160;</td><td class="mdescRight">解决Windows下的编译警告  <a href="_log_factory_8h.html#af8a544c409a7f10d43a1bb45c8b9ad0b">更多...</a><br /></td></tr>
<tr class="separator:af8a544c409a7f10d43a1bb45c8b9ad0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a id="a3df9ded611daa86e2ddaa45c2bda32d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3df9ded611daa86e2ddaa45c2bda32d7">&#9670;&nbsp;</a></span>LOG_SET_DIR</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOG_SET_DIR</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">dir</td><td>)</td>
          <td>&#160;&#160;&#160;LibTools::LogFactory::GetInstancePtr()-&gt;SetLogPath(dir)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置目录 </p>

<p class="definition">在文件 <a class="el" href="_log_factory_8h_source.html">LogFactory.h</a> 第 <a class="el" href="_log_factory_8h_source.html#l00015">15</a> 行定义.</p>

</div>
</div>
<a id="a67aae99c7746aabb0b23348e0ee6c929"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a67aae99c7746aabb0b23348e0ee6c929">&#9670;&nbsp;</a></span>LOG_SET_FILE_SIZE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOG_SET_FILE_SIZE</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">fileSize</td><td>)</td>
          <td>&#160;&#160;&#160;LibTools::LogFactory::GetInstancePtr()-&gt;SetLogFileSize(fileSize)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置文件大小 </p>

<p class="definition">在文件 <a class="el" href="_log_factory_8h_source.html">LogFactory.h</a> 第 <a class="el" href="_log_factory_8h_source.html#l00017">17</a> 行定义.</p>

</div>
</div>
<a id="ae65650d5cd8ed6e59570a4ef2445ada1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae65650d5cd8ed6e59570a4ef2445ada1">&#9670;&nbsp;</a></span>LOG_SET_LEVEL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOG_SET_LEVEL</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">level</td><td>)</td>
          <td>&#160;&#160;&#160;LibTools::LogFactory::GetInstancePtr()-&gt;SetLogLevel(level)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置日志级别 </p>

<p class="definition">在文件 <a class="el" href="_log_factory_8h_source.html">LogFactory.h</a> 第 <a class="el" href="_log_factory_8h_source.html#l00021">21</a> 行定义.</p>

</div>
</div>
<a id="aa6e60c0db40fcf44166ed93a1fb15308"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa6e60c0db40fcf44166ed93a1fb15308">&#9670;&nbsp;</a></span>LOG_SET_SWITCH_FILE_TIME</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOG_SET_SWITCH_FILE_TIME</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">switchFileTime</td><td>)</td>
          <td>&#160;&#160;&#160;LibTools::LogFactory::GetInstancePtr()-&gt;SetSwitchFile(switchFileTime)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置切换文件的时间(单位秒) </p>

<p class="definition">在文件 <a class="el" href="_log_factory_8h_source.html">LogFactory.h</a> 第 <a class="el" href="_log_factory_8h_source.html#l00019">19</a> 行定义.</p>

</div>
</div>
<a id="a48f58b6175e9d5e2c645150387385b91"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a48f58b6175e9d5e2c645150387385b91">&#9670;&nbsp;</a></span>LOG_SET_WRITE_CONSOLE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOG_SET_WRITE_CONSOLE</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">isWriteConsole</td><td>)</td>
          <td>&#160;&#160;&#160;LibTools::LogFactory::GetInstancePtr()-&gt;SetWriteConsole(isWriteConsole)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置输出到控制台 </p>

<p class="definition">在文件 <a class="el" href="_log_factory_8h_source.html">LogFactory.h</a> 第 <a class="el" href="_log_factory_8h_source.html#l00023">23</a> 行定义.</p>

</div>
</div>
<a id="a3bcb3081cc092adc9e13acb28e70d9e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3bcb3081cc092adc9e13acb28e70d9e0">&#9670;&nbsp;</a></span>LOG_TOOLS</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOG_TOOLS</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">LEVEL</td><td>)</td>
          <td>&#160;&#160;&#160;LibTools::CLogStream(LibTools::LogFactory::GetInstancePtr(), LEVEL)&lt;&lt;&quot;[&quot;&lt;&lt;__FILE__&lt;&lt;&quot;,&quot;&lt;&lt;__LINE__&lt;&lt;&quot;]&quot;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>日志流操作宏工具 </p>

<p class="definition">在文件 <a class="el" href="_log_factory_8h_source.html">LogFactory.h</a> 第 <a class="el" href="_log_factory_8h_source.html#l00013">13</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="af8a544c409a7f10d43a1bb45c8b9ad0b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8a544c409a7f10d43a1bb45c8b9ad0b">&#9670;&nbsp;</a></span>EXPORT_SHARED_PTR()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">EXPORT_SHARED_PTR </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_c_safe_logs.html">CSafeLogs</a>&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>解决Windows下的编译警告 </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
